package com.nulgame.bukkit.plugin.messagebuilder;

import com.nulgame.bukkit.plugin.responsebuilder.AntiWordResponseBuilder;

import junit.framework.TestCase;

public class AntiWordResponseBuilderTestCase extends TestCase {
	public void testToResponse(){
		AntiWordResponseBuilder builder = new AntiWordResponseBuilder("The word '%Word%' is not allowed", "chicanh", "bye bye bibi", "bibi");
		assertEquals("The word 'bibi' is not allowed", builder.toResponse());
		
		builder = new AntiWordResponseBuilder("%PlayerName%, the word '%Word%' is not allowed, your chat is %Message%", "chicanh", "bye bye bibi", "bibi");
		assertEquals("chicanh, the word 'bibi' is not allowed, your chat is bye bye bibi", builder.toResponse());
	}
}
